package com.rs.game.player.dialogues;

import com.rs.utils.ShopsHandler;

public class SummoningShop extends Dialogue {
	
	private int npcId;

	@Override
	public void start() {
		npcId = (int) parameters[0];
		sendNPCDialogue(npcId, Expressions.HAPPY_TALKING, "Would you like to view my shops?");
	}

	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			sendOptionsDialogue("Choose a Shop", "Required Items", "Ingredients Shop 1", "Ingredients Shop 2");
			stage = 0;
			break;
		case 0:
			switch (componentId) {
			case OPTION_1: // Required Items
				ShopsHandler.openShop(player, 16);
				end();
				break;
			case OPTION_2: // Ingredients Shop 1
				ShopsHandler.openShop(player, 28);
				end();
				break;
			case OPTION_3: // Ingredients Shop 2
				ShopsHandler.openShop(player, 29);
				end();
				break;
			}
		}
	}

	@Override
	public void finish() {

	}

}